import { dialog } from '../antd-dialog/index.js';

export const openPopupRoute = function (title, component) {
  dialog({
    content: component,
    contentProps: {
      fromDialog: true,
    },
    dialogProps: {
      title: title,
      size: 'medium',
      height: 'fixed',
      maskClosable: false,
    },
  });
};
